package com.zt.student.service;

import com.zt.common.pojo.StudentVx;
import com.zt.student.dto.StudentDTO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * description:
 * author:zt
 * date:2021-11-27
 */
public interface StudentService {

    StudentVx handleLogin(String code, String rawData, String signature, HttpServletRequest request);

    StudentVx getStudentByStuId(String studentId);

    StudentVx getStudentByOpenId(String openId);

    String update(StudentDTO studentDTO,HttpServletResponse response);

    void logOut(HttpServletRequest request);

    void cancelBindStuId(HttpServletRequest request);

    String updateAvatar(MultipartFile file, HttpServletRequest request) throws IOException;
}
